package com.hnn.learn.dubboprovider;

import com.alibaba.dubbo.config.ServiceConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.web.context.ServletContextAware;

import java.io.IOException;

@SpringBootApplication
public class DubboProviderApplication {

	public static void main(String[] args) {
		SpringApplication.run(DubboProviderApplication.class, args);


//		ClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext("classpath:META-INF/spring/dubbo_provider.xml");
//		ServiceConfig config =context.getBean(ServiceConfig.class);
//		System.out.println( config.getExportedUrls());
//		context.start();
//		try {
//			System.in.read();
//		} catch (IOException e) {
//			throw new RuntimeException(e);
//		}
	}

}
